php check of object is empty

60

php check of object is empty -

$arr = (array)$obj;
if (!$arr) {
    // do stuff
}

Comments

Submit
0 Comments